import request from '@/utils/request'

export function findAllList(data) {
  return request({
    url: '/connectionConfiguration/list',
    method: 'post',
    data
  })
}

export function findType() {
  return request({
    url: '/connectionConfiguration/type',
    method: 'get'
  })
}

export function ConfigurationAddAxios(data) {
  return request({
    url: '/connectionConfiguration',
    method: 'post',
    data
  })
}

export function deleteAxios(connectionId) {
  return request({
    url: `/connectionConfiguration/${connectionId}`,
    method: 'delete'
  })
}




export function getAxios(connectionId) {
  return request({
    url: `/connectionConfiguration/${connectionId}`,
    method: 'get'
  })
}

export function putAxios(data) {
  return request({
    url: "/connectionConfiguration",
    method: 'put',
    data
  })
}

export function testConAxios(connectionId) {
  return request({
    url: `/connectionConfiguration/test/${connectionId}`,
    method: 'get'
  })
}

export function defaltUpdateAxios(connectionId) {
  return request({
    url: `/connectionConfiguration/defaultUpdate/${connectionId}`,
    method: 'get'
  })
}
